﻿namespace GameOfLife.Web
{
    using System.Web;

    public partial class Default : System.Web.UI.Page
    {
        #region Properties

        public string BrowserLang
        {
            get
            {
                string defaultLang = "pl-PL";
                if (HttpContext.Current.Request.UserLanguages.Length >= 1)
                {
                    defaultLang = HttpContext.Current.Request.UserLanguages[0].ToString();
                }
                return defaultLang;
            }
        }

        #endregion Properties

        #region Methods

        protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);
            if (!Page.IsPostBack)
            {
                form1.DataBind();
            }
        }

        #endregion Methods
    }
}